<template>
	<view class='user'>
		<!--头部-->
		<view class='user-header'>
			<view class='header-main'>
				<view class='header-config' @tap='goConfig'>
					<image class='config-img' src="../../static/img/user-img/config.png" mode=""></image>
				</view>
				<view class='header-logo'>
					<image class='logo-img' src="../../static/img/user-img/logo1.jpg" mode=""></image>
					<view class='logo-name'>用户昵称</view>
				</view>
			</view>
		</view>
		<!--我的订单-->
		<view class='order'>
			<view class='order-title'>
				<view>我的订单</view>
				<view>全部订单 > </view>
			</view>
			<view class='order-list'>
				<view class='order-item'>
					<image class='order-img' src="../../static/tabbar/order1.png" mode=""></image>
					<view>待付款</view>
				</view>
				<view class='order-item'>
					<image class='order-img' src="../../static/tabbar/order2.png" mode=""></image>
					<view>待收货</view>
				</view>
			</view>
		</view>
		<!--内容列表-->
		<view class='user-content'>
			<view class="user-content-item" @tap='goSignIn'>
				<view>签到</view>
				<view>></view>
			</view>
			<view class="user-content-item" @tap='goStar'>
				<view>收藏夹</view>
				<view>></view>
			</view>
			<view class="user-content-item" @tap="goHistory">
				<view>历史记录</view>
				<view>></view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			goConfig() {
				uni.navigateTo({
					url: '../user-config/user-config'
				})
			},
			goSignIn() {
				uni.navigateTo({
					url: '../user-qiandao/signin'
				})
			},
			// 跳转收藏夹
			goStar() {
				uni.navigateTo({
					url: '/pages/user-star/index/index'
				})
			},
			goHistory() {
				uni.navigateTo({
					url: '/pages/history/history'
				})
			}
		}
	}
</script>

<style scoped>
	.user {
		background-image: url("https://p0.ssl.qhimgs1.com/t01f2e12fe76fc23380.jpg")
	}

	.user-header {
		width: 100%;
		height: 300px;
	}

	.header-main {
		position: relative;
	}

	.header-config {
		position: absolute;
		top: 20px;
		left: 20px;
	}

	.header-logo {
		position: absolute;
		top: 80px;
		left: 50%;
		margin-left: -60px;
		width: 120px;
	}

	.config-img {
		width: 40px;
		height: 40px;
	}

	.logo-img {
		width: 120px;
		height: 120px;
		border: 2px solid #CCCCCC;
		border-radius: 50%;
		background-color: #FFFFFF;
	}

	.logo-name {
		font-weight: bold;
		color: #FFFFFF;
		/* 使昵称居中 */
		text-align: center;
	}

	.order-title {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 20px;
	}

	.order-list {
		padding: 20px;
		display: flex;
	}

	.order-item {
		flex: 1;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}

	.order-img {
		width: 66px;
		height: 66px;
	}

	.user-content {
		margin: 20px 0;
		padding: 0 20px;
	}

	.user-content-item {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 30px 0;
		border-bottom: 1px solid yellowgreen;
	}
</style>